package com.lubase.metadata.invoke;

import com.lubase.core.extend.IInvokeMethod;
import com.lubase.metadata.service.ApplyLakeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public class SubmitLakeApplyInvoke implements IInvokeMethod {
    @Autowired
    ApplyLakeService applyLakeService;

    @Override
    public Object exe(HashMap<String, String> mapParam) throws Exception {
        String id = checkAndGetParam("id", mapParam);
        return applyLakeService.submitApplyLake(id);
    }

    @Override
    public String getDescription() {
        return "入湖申请，提交流程";
    }

    @Override
    public String getId() {
        return "1482462933911867392";
    }
}
